package com.maigao.util.context.ip;

import java.io.Serializable;

/**
 * @author awei
 * @description IP
 * @date 2022/5/15 10:00 下午
 */
public class IP implements Serializable, Cloneable {
    private static final long serialVersionUID = 664122755726589742L;

    private String clientIP;
    private String userIP;
    private String cdnIP;

    public IP(String clientIP, String userIP, String cdnIP) {
        this.clientIP = clientIP;
        this.userIP = userIP;
        this.cdnIP = cdnIP;
    }

    public String getClientIP() {
        return clientIP;
    }

    public void setClientIP(String clientIP) {
        this.clientIP = clientIP;
    }

    public String getUserIP() {
        return userIP;
    }

    public void setUserIP(String userIP) {
        this.userIP = userIP;
    }

    public String getCdnIP() {
        return cdnIP;
    }

    public void setCdnIP(String cdnIP) {
        this.cdnIP = cdnIP;
    }

    @Override
    public IP clone() {
        return new IP(clientIP, userIP, cdnIP);
    }
}